 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
            overflow-x: hidden;
        }
                /* ad section   */
.av-small {
    position: relative;
    width: 76%;
    overflow: hidden;
    background-color: rgb(219, 219, 219);
    aspect-ratio:1020 / 230;
    margin-bottom: 30px;
    margin: 12px auto;
}

    .small-ad {
      display: none; /* Hide all ads initially */
      width: 100%;
      height: 100%;
      transition: opacity 2s ease-in-out;
    }
        /* Optional: Add border and padding to each ad */
    .small-ad picture {
      border: 2px solid #000;
      padding: 5px;
    }

    /* Show only the active ad */
    .active-ad {
      display: block;
    }

        /* Footer */
        .footer {
            background: #1a3f14;
            color: white;
            padding: 60px 0 30px;
        }
        
        .footer-container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }
        
        .footer-column h3 {
            color: #ffcc00;
            margin-bottom: 20px;
            font-size: 1.4rem;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 10px;
        }
        
        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .footer-links a:hover {
            color: #ffcc00;
        }
        
        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
            transition: all 0.3s ease;
        }
        
        .social-links a:hover {
            background: #ffcc00;
            color: #2c5c1f;
        }
        
        .copyright {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
        }
  
  
          #spinner-main{
display: none;
      justify-content: center;

     
}    
        /* Code2 Styles */
        :root {
            --primary: #2c5aa0;
            --secondary: #ff9933;
            --accent: #cc0000;
            --light: #f5f7fa;
            --dark: #1e2a3a;
            --gray: #6c757d;
            --success: #28a745;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            --border-radius: 8px;
            --transition: all 0.3s ease;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* Slideshow Section */
        .slideshow-section {
            margin: 20px 0 20px;
        }
        
        .slideshow-container {
            max-width: 100%;
            position: relative;
            margin: auto;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            height: 180px;
        }
        
        .slide {
            display: none;
            height: 180px;
            background-size: cover;
            background-position: center;
            position: relative;
        }
        
        .slide-content {
            position: absolute;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            width: 100%;
            padding: 15px 20px;
        }
        
        .slide-title {
            font-size: 1.2rem;
            margin-bottom: 5px;
        }
        
        .slide-desc {
            font-size: 0.9rem;
            opacity: 0.9;
        }
        
        .slide-dots {
            text-align: center;
            margin-top: 15px;
        }
        
        .dot {
            height: 12px;
            width: 12px;
            margin: 0 5px;
            background-color: #bbb;
            border-radius: 50%;
            display: inline-block;
            transition: var(--transition);
        }
        
        .dot.active, .dot:hover {
            background-color: var(--primary);
        }
        
        /* Category Header */
        .category-header {
            background: white;
            padding: 20px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            margin-bottom: 25px;
            height: 100%;
    min-height: 150px;
        }
        
        .breadcrumb {
            display: flex;
            list-style: none;
            
            font-size: 0.9rem;
            height: 27.038px;
        }
        
        .breadcrumb li {
            margin-right: 5px;
        }
        
        .breadcrumb li:after {
            content: "›";
            margin-left: 5px;
            color: #ccc;
        }
        
        .breadcrumb li:last-child:after {
            content: "";
        }
        
        .breadcrumb a {
            color: var(--primary);
            text-decoration: none;
        }
        
        .breadcrumb a:hover {
            text-decoration: underline;
        }
        
        .category-title {
            font-size: 1.8rem;
            margin-bottom: 10px;
            color: var(--dark);
        }
        
        .category-description {
            font-size: 1rem;
            max-width: 800px;
            color: var(--gray);
        }
        
        /* Main Layout */
        .main-layout {
            display: flex;
            gap: 25px;
            margin-bottom: 40px;
        }
        
        /* Filter Sidebar */
       .filter-sidebar {
            flex: 0 0 300px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            padding: 20px;
            align-self: flex-start;
        }
        
        .filter-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }
        
        .filter-title {
            font-size: 1.3rem;
            /*color: #2c5aa0;*/
        }
        
        .collapse-filter {
            background: none;
            border: none;
            font-size: 1.2rem;
            cursor: pointer;
            color: #2c5aa0;
        }
        
        .filter-group {
            margin-bottom: 20px;
        }
        
        .filter-group h3 {
            font-size: 1.1rem;
            margin-bottom: 12px;
            color: #333;
        }
        
        .filter-options {
            list-style: none;
        }
        
        .filter-options li {
            margin-bottom: 8px;
        }
        
        .filter-options label {
            display: flex;
            align-items: center;
            cursor: pointer;
            font-size: 1rem;
        }
        
        .filter-options input[type="checkbox"] {
            margin-right: 10px;
            width: 18px;
            height: 18px;
        }
        
        .district-select {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            margin-bottom: 15px;
            font-size: 1rem;
            background-color: #f9fafc;
        }
        
        .district-select:focus {
            outline: none;
            border-color: #2c5aa0;
            box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.2);
        }
        
        .filter-btn {
            background-color: #2c5aa0;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 5px;
            cursor: pointer;
            width: 100%;
            font-size: 1rem;
            font-weight: 600;
            transition: background-color 0.3s;
        }
        
        .filter-btn:hover {
            background-color: #1e4085;
        }
        
        
        /* Content Area */
        .content-area {
            flex: 1;
        }
        
        .sort-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            background: white;
            padding: 15px 20px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
        }
        
        .sort-by {
            display: flex;
            align-items: center;
        }
        
        .sort-by select {
            padding: 8px 15px;
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            margin-left: 10px;
            font-size: 1rem;
            pointer-events: none;
        }
        
        .results-count {
            font-size: 1rem;
            color: var(--gray);
        }
        
        /* Business Grid - Compact Cards */
        .business-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .business-card {
            background: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            display: flex;
            height: 155px;
        }
        
        .business-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
        }
        
        .business-image {
            width: 100px;
            overflow: hidden;
            position: relative;
            flex-shrink: 0;
        }
        
        .business-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .verified-badge {
            position: absolute;
            top: 8px;
            left: 8px;
            background: var(--success);
            color: white;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.6rem;
        }
        
        .business-info {
            padding:6px 0px 9px 11px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-width: 0; /* Crucial for text ellipsis to work in flex children */
        }
        
        .business-title {
            font-size: 1rem;
            margin-bottom:2px;
            color: var(--dark);
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .business-meta {
            display: flex;
            align-items: center;
            margin-bottom: 2px;
        }
        
        .rating {
            color: #ffc107;
            margin-right: 8px;
            font-size: 0.8rem;
        }
        
        .business-details {
            margin-bottom: 1px;
            font-size: 0.8rem;
            color: var(--gray);
        }
        
        .detail {
            display: flex;
            margin-bottom: 3px;
           font-size: 13px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .detail i {
            margin-top: 3px;
            margin-right: 6px;
            color: var(--primary);
            width: 12px;
            font-size: 14px;
            flex-shrink: 0;
        }
        .phone-number i{
            font-size: 13px;
        }
        .detail span {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .phone-number {
            color: var(--primary);
            font-weight: 500;
            font-size: 0.9rem;
            margin: 3px 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .business-actions {
            display: flex;
            gap: 8px;
            margin-top: 5px;
        }
        
        .action-btn {
            text-align: center;
            padding: 5px 10px;
            border-radius: var(--border-radius);
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            text-decoration: none;
            white-space: nowrap;
            -webkit-tap-highlight-color: transparent;
        }

.action-btn.colored {
    background-color: #f8f8f8;
    color: #ff008d;
}
        
        .btn-primary {
            background: var(--primary);
            color: white;
            border: none;
        }
        
        .btn-primary:hover {
            background: #1e4085;
        }
        
        .btn-secondary {
            background: var(--light);
            color: var(--dark);
            border: 1px solid #ddd;
        }
        
        .btn-secondary:hover {
            background: #e9ecef;
        }
        
        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 30px;
        }
        
        .pagination-item {
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 5px;
            border-radius: var(--border-radius);
            background: white;
            color: var(--dark);
            text-decoration: none;
            font-weight: 600;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }
        .pagination a{
            pointer-events: none;
        }
        .pagination-item:hover, .pagination-item.active {
            background: var(--primary);
            color: white;
        }

        /* Responsive Styles */
        @media (max-width: 992px) {
            .main-layout {
                flex-direction: column;
            }
            .filter-header{
                display: none;
            }
            .filter-group {
                margin-bottom: 9px;
                display: flex;
                white-space: nowrap;
                gap: 25px;
                align-items: center;
}
            .filter-sidebar {
                width: 100%;
                margin-bottom: 0px;
                flex: 0 0 242px;

            }
            .filter-group h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
}
            .business-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
        }
        
        @media (max-width: 768px) {
            .category-title {
                font-size: 21px;
                margin-bottom: 7px;
            }
            
            .sort-options {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }
            
            .collapse-filter {
                display: block;
            }
            
            .filter-content {
                display: block;
            }
            
            .filter-content.collapsed {
                display: none;
            }
        }
        
        @media (max-width: 630px) {
            .business-grid {
                grid-template-columns: 1fr;
            }
            
            .business-card {
                height: auto;
                flex-direction:row;
            }
            
            .business-info {
                padding: 4px 0px 8px 12px;
            }
        }
        
        @media (max-width: 480px) {
            .business-grid {
                grid-template-columns: 1fr;
            }
            
            .slideshow-container {
                height: 150px;
            }
            
            .slide {
                height: 150px;
            }
        }

            @media(max-width:450px){
      .av-small{
        aspect-ratio:508 / 443;
            margin: 8px auto;
      }
      .av-small {
    width: 95%;
    }
    .main-layout {
 gap: 16px;

}.category-header{
    aspect-ratio: 582 / 277;
    
}


                  #spinner-main{
        margin-top: 136px;
      }
    .filter-sidebar {
         flex: 0 0 221px;
    padding: 15px;
    
}
}